package cn.powertime.evaluation.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class ReqAutomaticTestPaperVo implements Serializable {

    @ApiModelProperty(value = "智能练习试卷ID", position = 1)
    @NotNull(message = "智能练习试卷ID不能为空")
    private Long automaticId;

    @ApiModelProperty(value = "试卷名称", position = 2)
    @NotBlank(message = "试卷名称不能为空")
    private String title;

    @ApiModelProperty(value = "习题列表", position = 3)
    @Valid
    private List<ReqAutomaticTopicListVo> topicList;

    @Override
    public String toString() {
        return "{" +
                "automaticId:" + automaticId +
                ", title:'" + title + '\'' +
                ", topicList:" + topicList.toString() +
                '}';
    }

}
